package com.dljd.javase.t7;

public class Teacher extends  Person {

    private String title;

    public String getTitle() {
        return title;
    }

    public Teacher() {
    }

    public Teacher(String title) {
        this.title = title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void teach(){
        System.out.println("teacher is teaching");
    }

}
